<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>
		<div id="primary" class="hfeed">

				<?php if ( have_posts() ) : ?>
					<h1 class="page-title"><?php printf( __( 'Search Results for: %s', '1095' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
					<?php
					/* Run the loop for the search to output the results.
					 * If you want to overload this in a child theme then include a file
					 * called loop-search.php and that will be used instead.
					 */
					 get_template_part( 'loop', 'search' );
					?>
				<?php else : ?>
			
					<div id="post-0" class="post no-results not-found">
						<h1 class="entry-title"><?php _e( 'Nothing Found', '1095' ); ?></h1>
						<div class="entry-content">
							<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', '1095' ); ?></p>
							<?php get_search_form(); ?>
						</div><!-- .entry-content -->
					</div><!-- #post-0 --><br /><br />
					
				<?php endif; ?>
</div>
<?php get_footer(); ?>